<template>
	<view class="content">
		<!-- <image class="logo" src="/static/logo.png"></image> -->
		<view>
			<view class="btn" @click="jump(item)" v-for="(item, index) in list">
			    <text class="btn-text">{{item.title}}</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
					title: "试乘结束，去试驾",
					path: "/pages/hehe/hehe"
				},{
					title: "地图定位",
					path: "/pages/hehe/haha"
				},{
					title: "device",
					path: "/pages/hehe/device"
				},{
					title: "device",
					path: "/pages/goto/goto"
				},{
					title: "地图",
					path: "/pages/maps/index"
				},{
					title: "视频播放",
					path: "/pages/liveVideo/index"
				},{
					title: "原生子窗体",
					path: "/pages/deviceDetails/deviceDetails"
				},{
					title: "DeviceHeader",
					path: "/pages/deviceDetails/subNvue/DeviceHeader"
				},{
					title: "地图选址",
					path: "/pages/maps/searchMap"
				},{
					title: "天地图",
					path: "/pages/maps/newMap"
				},{
					title: "DevicePopup",
					path: "/pages/deviceDetails/subNvue/DevicePopup",
				},{
					title: "列表",
					path: "/pages/list/index"
				},{
					title: "列表",
					path: "/pages/list/list"
				},{
					title: "hehe",
					path: "/pages/deviceDetails/index"
				}]
			}
		},
		onLoad() {

		},
		methods: {
			jump(item) {
				uni.navigateTo({
					url: item.path
				})
			},
			plug() {
				uni.navigateTo({
					url: '/pages/plug/plug'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}
	.btn {
	  width: 400rpx;
	  margin-top: 40rpx;
	  padding: 16rpx 0;
	  border-radius: 18rpx;
	  background-color: #4C648F;
	  display: flex;
	  .btn-text {
	    flex: 1;
	    font-size: 28rpx;
	    color: #FFFFFF;
	    text-align: center;
	  }
	}
</style>
